package admin.Service;

import java.sql.SQLException;
import java.util.ArrayList;

import admin.DAO.ExcelDAO;
import admin.DTO.ComponentDTO;
import admin.DTO.MachineDTO;

public class ExcelServiceImpl implements ExcelService{
	private ExcelDAO dao;
	public ExcelServiceImpl(ExcelDAO dao){
		this.dao = dao;
	}
	@Override
	public ArrayList<ComponentDTO> componentKind() throws SQLException {
		return dao.componentKind();
	}
	@Override
	public ArrayList<ComponentDTO> isFaultN(ComponentDTO dto) throws SQLException {
		return dao.isFaultN(dto);
	}
	@Override
	public ComponentDTO count(ComponentDTO dto) throws SQLException {
		return dao.count(dto);
	}
	@Override
	public ArrayList<MachineDTO> machine(MachineDTO dto) throws SQLException {
		return dao.machine(dto);
	}
}
